<?php
	include_once('../public/config/config.php');
	include_once('../public/config/sql.php');

	// 实例化对象
	$obj = new sql($info);

	$id = isset($_GET['id']) ? $_GET['id'] : ''; //接受率id值

	// 构建SQL语句
	$sql = "select username,password,rank,content,state from administrator where id=?";

	$data = $obj->db_select($sql, false, null, null, null, $id);

?>
<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>	
	<div class="myIframe_box">
		<div class="iframe_title">
			<div class="iframe_title_c">
				<div class="title_c_l">
					<span>管理员编辑</span>
				</div>
			</div>
		</div>
		<div class="title_b_hint"><button onclick="return history.back(-1);">返回上一级</button></div>
		
		<div class="middle_box">
			<div class="middle_center">
				<form action="./pose/administrator_updateAction.php" method="post" class="myform">
					<p>
						<lable>管理员</lable>
						<input type="text" name="users" value="<?php echo $data['username']?>" disabled>
					</p>
					<p>
						<lable>密码</lable>
						<input type="password" name="passOne" value="<?php echo $data['password']?>">
					</p>
					<p>
						<lable>确认密码</lable>
						<input type="password" name="passTwo" value="<?php echo $data['password']?>">
					</p>
					<p>
						<lable>身份</lable>
						<select name="rank" id="">
							<option>站长</option>
							<option>超级管理员</option>
						</select>
					</p>
					<p>
						<lable>状态</lable>
						<select name="state" id="">
							<option value="0">正常</option>
							<option value="1">异常</option>
						</select>
					</p>
					<p>
						<lable>个性签</lable>
						<textarea name="content" id="" cols="30" rows="10"><?php echo $data['content']?></textarea>
					</p>
					<input type="hidden" name="id" value="<?php echo $id;?>">
					<input id="btn" type="submit" value="保存">
				</form>
			</div>
		</div>
	</div>
</body>
</html>